.PHONY:all
all:servercal clientcal

Flag=#-DMySelf=1 #在这里注释掉表示Flag为空，下面$(Flag)时就会自动去掉它
Lib=-ljsoncpp

servercal:ServerCalculator.cc
	g++ -o $@ $^ -std=c++11 $(Lib) $(Flag)
clientcal:ClientCalculator.cc
	g++ -o $@ $^ -std=c++11 $(Lib) $(Flag)

.PHONY:clean
clean:
	rm -f servercal clientcal